using System.Security.Principal;

namespace Higgs.Web.AtomPub.Attributes
{
    public class BasicPrincipal : IPrincipal
    {
        public BasicPrincipal(string userName)
        {
            Identity = new GenericIdentity(userName);
        }

        public bool IsInRole(string role)
        {
            return true;
        }

        public IIdentity Identity { get; set; }
    }
}